<include  file='Public:header'/>
<div class="local">
    当前位置：文章列表 > <present name="data">编辑<else />添加</present>
</div>
<div class="listBox clfx">
    <div class="memberAdd">
        <span class="s2"><a href="{:U('index')}">返回列表</a></span>
    </div>
    <div class="menuManage">
        <form target="simpleO2O_frm" action="{:U('save')}" method="post" >
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right">所属分类：</td>
                    <td>
                        <select name="category_id" class="manageSelect">
                            <foreach name="category" item="var" >
                                <option value="{$var.id}">{$var.name}</option>
                            </foreach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right">文章标题：</td>
                    <td>
                        <input type="text" name="title" class="manageInput" placeholder="文章标题" value="{$data.title}"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">描述：</td>
                    <td>
                        <textarea class="manageTextarea" name="description" placeholder="可以不填，如不填；则截取文章内容前300字为描述">{$data.description}</textarea>
                    </td>
                </tr>
                <tr>
                    <td align="right">内容：</td>
                    <td>
                        <script id="container" name="content" type="text/plain" style="width:800px;height:360px;">{$data.content|htmlspecialchars_decode}</script>
                    </td>
                </tr>
                <script type="text/javascript" charset="utf-8" src="__ASSET__/Admin/ueditor/ueditor.config.js"></script>
                <script type="text/javascript" charset="utf-8" src="__ASSET__/Admin/ueditor/ueditor.all.js"></script>
                <script type="text/javascript">
                    var ue = UE.getEditor('container');
                </script>
                <tr>
                    <td align="right">排序：</td>
                    <td>
                        <input type="text" name="orderby" class="manageInput" placeholder="排序" value="{$data.orderby}"/>
                    </td>
                </tr>
            </table>
            <input type="submit" class="remberSubmit" value="确认添加"  />
            <input type="hidden" name="id" value="{$data.id}">
        </form>
    </div>
</div>
<include  file='Public:footer'/>